package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjAdmLogistics;
import com.zb.entity.dto.LogisticsDto;
import com.zb.entity.dto.LogisticsSelectDto;
import com.zb.exception.RegisterException;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 后台物流表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-07-11
 */
public interface ZjAdmLogisticsService extends IService<ZjAdmLogistics> {

    /**
     * 添加或修改物流
     * @param logisticsDto
     */
    void save(LogisticsDto logisticsDto) throws RegisterException;

    /**
     * 物流列表接口
     * @param selectDto
     * @return
     */
    Map<String, Object> getList(LogisticsSelectDto selectDto);

    /**
     * 批量启用或禁用物流
     * @param idList 物流ID集合
     * @param disable 是否禁用：false-否，true-是
     */
    void batchDisableById(List<Long> idList, boolean disable);
}
